home *** CD-ROM | disk | FTP | other *** search
- function rikHit()
- {
- var _loc1_ = _parent;
- if(hitCount > 0)
- {
- hitCount--;
- }
- rikX = Math.abs(this._x - 125);
- rikY = Math.abs(this._y - _loc1_.rik._y - 20);
- if(rikX < 25 and rikY < 50)
- {
- if(_loc1_.riciclesCollected > 0)
- {
- anim.ricicle.gotoAndPlay(2);
- _loc1_.riciclesCollected = _loc1_.riciclesCollected - 1;
- }
- _loc1_.rikStatus = "HIT";
- _loc1_.speed = 0;
- _loc1_.boost = 0;
- _loc1_.flameLevel = 0;
- if(_loc1_.rikFrame <= 6)
- {
- _loc1_.rik.anim.gotoAndPlay("rightHit");
- }
- else
- {
- _loc1_.rik.anim.gotoAndPlay("leftHit");
- }
- hitCount = 10;
- }
- }
- alienCol = new Color(anim);
- alienColTransform1 = new Object();
- alienColTransform1 = {ra:"100",rb:"0",ga:"100",gb:"0",ba:"100",bb:"0",aa:"100",ab:"0"};
- alienColTransform2 = new Object();
- alienColTransform2 = {ra:"100",rb:"0",ga:"100",gb:"0",ba:"100",bb:"100",aa:"100",ab:"0"};
- sfxAlien = new Sound(this);
- sfxAlien.attachSound("sfxAlien");
- play();
-